<%--
  Created by IntelliJ IDEA.
  User: Admin
  Date: 2022/10/31
  Time: 14:14
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>时间段</title>
    <link rel="shortcut icon" href="${pageContext.request.contextPath}/img/jiejie_logo_s.png">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/head.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/css/cinema_movies.css">
    <link rel="stylesheet" href="${pageContext.request.contextPath}/layui/css/layui.css" tppabs="../layui/css/layui.css"  media="all">
    <script src="${pageContext.request.contextPath}/js/jquery-3.6.0.min.js"></script>
</head>
<body>
<div class="page_movie">
    <!-- 头部导航 -->
    <div class="header">
        <div class="header-inner">
            <div class="nav">
                <!-- logo -->
                <div class="logo">
                    <a href=""><img src="${pageContext.request.contextPath}/img/jiejie_logo.png" alt=""></a>
                </div>
                <div>
                    <div class="menu-item"><a href="${pageContext.request.contextPath}/index.jsp">首页</a></div>
                    <div class="menu-item"><a href="${pageContext.request.contextPath}/pages/films.jsp">电影</a></div>
                    <div class="menu-item"><a href="${pageContext.request.contextPath}/pages/cinema.jsp">影院</a></div>
                    <div class="menu-item"><a href="${pageContext.request.contextPath}/orderby">榜单</a></div>
                </div>

                <div class="search-form">
                    <input type="text" class="search-text">
                    <a href=""><span class="search-img"></span></a>

                </div>
                <div class="head-user">
                    <a href="login.html" class="loginBtn">登录</a>
                    <a href="regist.html" class="loginBtn">注册</a>
                </div>
                <div class="user-info">
                    <div class="user-avatar has-login">
                        <img src="${pageContext.request.contextPath}/img/touxiang.png">
                        <ul class="user-menu yes-login-menu">
                            <li class="text"><a href="">我的订单</a></li>
                            <li class="text login-name" ><a href="javascript:void 0">基本信息</a></li>
                            <li class="text"><a href="javascript:void 0" class="J-logout" data-act="logout-click">退出登录</a></li>
                        </ul>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 避免下面的块上移 -->
    <div class="header-m"></div>

    <!-- 简介栏 -->
    <div class="banner">
        <div class="wrapper clearfix">
            <!-- 左盒子 -->
            <div class="celeInfo-left">
                <div class="avatar-shadow">
                    <img class="avatar" src="${pageContext.request.contextPath}/${movie.moviePicture}">
                    <div class="movie-ver">
                        <i class="imax3d"></i>
                    </div>
                </div>
            </div>
            <!-- 右盒子 -->
            <div class="celeInfo-right clearfix">
                <div class="movie-brief-container">
                    <h1 class="name">${movie.movieCname}</h1>
                    <div class="ename ellipsis">${movie.movieEname}</div>
                    <ul>
                        <li class="ellipsis">
                            <c:forEach var="type" items="${listType}">
                                <a href="films.html" class="text-link" target="_bank">${type}</a>
                            </c:forEach>
                        </li>
                        <li class="ellipsis"> ${movie.movieArea} / 时长:${movie.movieDuration}</li>
                        <li class="ellipsis">${movie.movieOpenhours}${movie.movieShowArea}上映</li>
                    </ul>

                    <div class="features-group">
                        <div class="group-title">影院服务———————————————————</div>

                        <div class="feature">
                            <span class="tag ">改签</span>
                            <p class="desc text-ellipsis" >未取票用户放映前60分钟可改签</p>
                        </div>
                        <div class="feature">
                            <span class="tag ">3D眼镜</span>
                            <p class="desc text-ellipsis" >为了您的观影安全，建议您自备或至影城购买独立包装3D眼镜，我们亦免费提供已消毒3D眼镜。</p>
                        </div>
                        <div class="feature">
                            <span class="tag ">儿童优惠</span>
                            <p class="desc text-ellipsis" >1.3米以下儿童普通厅免费无座观影，一名成人限带一名儿童，GOLD CLASS 2厅、激光IMAX 3厅、SPHEREXE 4厅、4DXSCREEN 9厅，儿童均需购票</p>
                        </div>
                        <div class="feature">
                            <span class="tag ">可停车</span>
                            <p class="desc text-ellipsis" >地下停车场、停车楼免费3小时停车，B2层5号梯直达影城；10:00前22:00后进入影城，需将车停在停车楼，从广场1层观光梯直达（优衣库门前）</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- 内容选项 -->
    <div class="container">
        <div class="show-list" data-index="0">
            <div class="movie-info">
                <div>
                    <h2 class="movie-name">${movie.movieCname}</h2>
                    <span class="score-num">${allCommentsScore}</span>
                    <span class="score-text">分</span>
                </div>
                <div class="movie-desc">
                    <div>
                        <span class="key">时长 :</span>
                        <span class="value">${movie.movieDuration}分钟</span>
                    </div>
                    <div>
                        <span class="key">类型 :</span>
                        <span class="value">
                            <c:forEach var="type" items="${listType}">
                                <a class="text-link" href="films.html" > ${type} </a>
                            </c:forEach>
                        </span>
                    </div>
                    <div>
                        <span class="key">主演 :</span>
                        <span> 沈腾</span>
                        <span>马丽</span>
                        <span>常远</span>
                    </div>
                </div>
            </div>


            <div class="show-date">
                <span>观影时间 :</span>
                <div class="show-dates">
                    <span class="date-item active" data-index="0">今天 ${dataOne}</span>
                    <span class="date-item " data-index="1">明天 ${dataTwo}</span>
                </div>
            </div>

            <div class="plist-container">
                <table class="plist">
                    <thead>
                    <tr>
                        <th>放映时间</th>
                        <th>语言版本</th>
                        <th>放映厅</th>
                        <th>售价（元）</th>
                        <th>选座购票</th>
                    </tr>
                    </thead>
                        <c:forEach var="schedule" items="${scheduleList}">
                            <tr class="">
                                <td>
                                    <span class="begin-time">${schedule.scheduleBeginTime}</span>
                                    <br>
                                    <span class="end-time">${schedule.scheduleEndTime}散场</span>
                                </td>
                                <td>
                                    <span class="lang">${schedule.orther1}</span>
                                </td>
                                <td>
                                    <span class="hall">${schedule.hallName}</span>
                                </td>
                                <td>
                                    <span class="sell-price"><span class="stonefont">￥${schedule.schedulePrice}</span></span>
                                </td>
                                <td>
                                    <a href="MovieSeat?scheduleId=${schedule.scheduleId}" class="buy-btn normal">选座购票</a>
                                   <%-- <div hidden="hidden">
                                        <span class="scheduleId">${schedule.scheduleId}</span>
                                    </div>--%>
                                </td>
                            </tr>

                            <script>
                            </script>
                        </c:forEach>
                      <%--
                        <tr class="even">
                            <td>
                                <span class="begin-time">20:50</span>
                                <br>
                                <span class="end-time">23:03散场</span>
                            </td>
                            <td>
                                <span class="lang">中文2D</span>
                            </td>
                            <td>
                                <span class="hall">8厅</span>
                            </td>
                            <td>
                                <span class="sell-price"><span class="stonefont">￥49</span></span>
                            </td>
                            <td>
                                <a href="" class="buy-btn normal">选座购票</a>
                            </td>
                        </tr>
                        <tr class="">
                            <td>
                                <span class="begin-time">21:35</span>
                                <br>
                                <span class="end-time">23:48散场</span>
                            </td>
                            <td>
                                <span class="lang">中文2D</span>
                            </td>
                            <td>
                                <span class="hall">6厅</span>
                            </td>
                            <td>
                                <span class="sell-price"><span class="stonefont">￥49</span></span>
                            </td>
                            <td>
                                <a href="" class="buy-btn normal" >选座购票</a>
                            </td>
                        </tr>
                    --%>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<script src="${pageContext.request.contextPath}/js/cinema_movies.js"></script>
</body>
</html>
